package etnorservice.etnor_service.controller;

import etnorservice.etnor_service.result.Result;
import etnorservice.etnor_service.service.ToolsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/06/30/14:06
 **/
@RestController
public class ToolsController {
    @Autowired
    ToolsService toolsService;
    @GetMapping("/getAllTools")
    public Result getAllTools(){
        Result result=new Result();
        result.setCode(200);
        result.setData(toolsService.getAllTools());
       return result;
    }
}
